package com.two.service.collect.feign;

import com.github.pagehelper.PageInfo;
import com.two.common.entity.CollectVo;
import com.two.common.entity.Menu;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;


@FeignClient(value = "two-orderSystem-service-caipin")
public interface CaiPinFeign {
    //类别查询，
    @PostMapping("/caipin/caipin/selectAll")
    @ApiOperation("类别菜品")
    //public List<Menu> selectAll(@RequestParam Integer userid);
    public PageInfo<Menu> selectAll(@RequestParam Integer currentPage, @RequestParam Integer pageSize, @RequestParam Integer userid,@RequestBody CollectVo collectVo);
    // 手机端收藏查询
    @PostMapping("/caipin/caipin/CollectSelect")
    @ApiOperation("收藏查询")
    public List<Menu> CollectSelect(@RequestParam  Integer userid);
}
